<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>技术小馆文章可视化工具 | 提升技术阅读体验</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            color: #333;
            line-height: 1.6;
        }
        .hero-bg {
            background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
        }
        .card-hover {
            transition: all 0.3s ease;
        }
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .highlight-text {
            background: linear-gradient(90deg, #ff9a9e 0%, #fad0c4 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        .step-icon {
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        .feature-icon {
            color: #6e8efb;
            font-size: 1.5rem;
        }
        .mermaid-wrapper {
            background: white;
            border-radius: 0.5rem;
            padding: 1.5rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- Hero Section -->
    <div class="hero-bg text-white py-20 px-4 sm:px-6 lg:px-8">
        <div class="max-w-7xl mx-auto">
            <div class="flex flex-col md:flex-row items-center">
                <div class="md:w-1/2 mb-10 md:mb-0 md:pr-10">
                    <h1 class="text-4xl md:text-5xl font-bold mb-4 font-serif">技术小馆文章可视化工具</h1>
                    <p class="text-xl mb-8 opacity-90">让技术阅读更<span class="highlight-text font-bold">直观</span>、<span class="highlight-text font-bold">高效</span>、<span class="highlight-text font-bold">愉悦</span></p>
                    <div class="flex space-x-4">
                        <a href="#installation" class="bg-white text-indigo-600 px-6 py-3 rounded-lg font-medium hover:bg-gray-100 transition duration-300 shadow-md">立即安装</a>
                        <a href="#features" class="bg-transparent border-2 border-white text-white px-6 py-3 rounded-lg font-medium hover:bg-white hover:text-indigo-600 transition duration-300">了解更多</a>
                    </div>
                </div>
                <div class="md:w-1/2">
                    <img src="https://cdn.nlark.com/yuque/0/2025/gif/21449790/1748334229840-f22fe4c5-91b1-44d8-97b5-80c59cf8d56d.gif" alt="技术小馆文章可视化工具演示" class="rounded-xl shadow-2xl border-4 border-white transform rotate-1">
                </div>
            </div>
        </div>
    </div>

    <!-- Features Section -->
    <div id="features" class="py-16 px-4 sm:px-6 lg:px-8 bg-white">
        <div class="max-w-7xl mx-auto">
            <h2 class="text-3xl font-bold text-center mb-12 font-serif">核心功能</h2>
            <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
                <div class="bg-gray-50 p-8 rounded-xl card-hover">
                    <div class="feature-icon mb-4">
                        <i class="fas fa-magic"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">AI智能解析</h3>
                    <p class="text-gray-600">利用先进AI技术对文章内容进行结构化处理，自动提取关键信息，将复杂技术内容转化为可视化图表。</p>
                </div>
                <div class="bg-gray-50 p-8 rounded-xl card-hover">
                    <div class="feature-icon mb-4">
                        <i class="fas fa-columns"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">侧边浮窗展示</h3>
                    <p class="text-gray-600">在文章右侧以可调节浮窗展示结构化内容，不干扰原网页阅读，支持拖拽调整宽度，提升浏览体验。</p>
                </div>
                <div class="bg-gray-50 p-8 rounded-xl card-hover">
                    <div class="feature-icon mb-4">
                        <i class="fas fa-bolt"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-3">实时流式处理</h3>
                    <p class="text-gray-600">内容边生成边展示，无需等待全部处理完成，立即开始理解技术要点，提高学习效率。</p>
                </div>
            </div>
        </div>
    </div>

    <!-- Visualization Demo -->
    <div class="py-16 px-4 sm:px-6 lg:px-8 bg-gray-50">
        <div class="max-w-7xl mx-auto">
            <h2 class="text-3xl font-bold text-center mb-12 font-serif">可视化效果演示</h2>
            <div class="mermaid-wrapper">
                <div class="mermaid">
                    graph TD
                    A[技术小馆文章] --> B[AI解析处理]
                    B --> C[识别文章结构]
                    B --> D[提取关键概念]
                    B --> E[建立概念关系]
                    C --> F[生成思维导图]
                    D --> F
                    E --> F
                    F --> G[可视化展示]
                </div>
            </div>
        </div>
    </div>

    <!-- Installation Guide -->
    <div id="installation" class="py-16 px-4 sm:px-6 lg:px-8 bg-white">
        <div class="max-w-7xl mx-auto">
            <h2 class="text-3xl font-bold text-center mb-12 font-serif">安装指南</h2>
            
            <div class="max-w-3xl mx-auto">
                <div class="flex items-start mb-12">
                    <div class="step-icon rounded-full flex items-center justify-center text-white font-bold mr-6 shrink-0">1</div>
                    <div>
                        <h3 class="text-xl font-bold mb-3">下载源码</h3>
                        <p class="text-gray-600 mb-4">访问 <a href="https://gitee.com/dashixin.com/html-view" class="text-indigo-600 hover:underline">Gitee项目地址</a>，点击"克隆/下载"获取源码。</p>
                        <img src="https://cdn.nlark.com/yuque/0/2025/png/21449790/1748326443352-e2b7d5ed-49e5-4002-a7d3-24ef8bedd285.png" alt="下载源码截图" class="rounded-lg shadow-md border border-gray-200">
                    </div>
                </div>
                
                <div class="flex items-start mb-12">
                    <div class="step-icon rounded-full flex items-center justify-center text-white font-bold mr-6 shrink-0">2</div>
                    <div>
                        <h3 class="text-xl font-bold mb-3">加载扩展</h3>
                        <p class="text-gray-600 mb-4">打开Chrome浏览器，输入 <code class="bg-gray-100 px-2 py-1 rounded">chrome://extensions/</code> 进入扩展管理页面，开启右上角"开发者模式"。</p>
                        <p class="text-gray-600 mb-4">点击"加载已解压的扩展程序"，选择项目源码目录。</p>
                    </div>
                </div>
                
                <div class="flex items-start">
                    <div class="step-icon rounded-full flex items-center justify-center text-white font-bold mr-6 shrink-0">3</div>
                    <div>
                        <h3 class="text-xl font-bold mb-3">完成安装</h3>
                        <p class="text-gray-600">安装成功后，浏览器右上角会出现插件图标，即可开始使用。</p>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Browser Support -->
    <div class="py-16 px-4 sm:px-6 lg:px-8 bg-indigo-50">
        <div class="max-w-7xl mx-auto">
            <h2 class="text-3xl font-bold text-center mb-12 font-serif">浏览器支持</h2>
            <div class="grid grid-cols-2 md:grid-cols-4 gap-6">
                <div class="bg-white p-6 rounded-lg text-center">
                    <i class="fab fa-chrome text-4xl text-green-500 mb-3"></i>
                    <h3 class="font-bold">Chrome</h3>
                    <p class="text-gray-600 text-sm">完全支持</p>
                </div>
                <div class="bg-white p-6 rounded-lg text-center">
                    <i class="fab fa-edge text-4xl text-blue-500 mb-3"></i>
                    <h3 class="font-bold">Edge</h3>
                    <p class="text-gray-600 text-sm">完全支持</p>
                </div>
                <div class="bg-white p-6 rounded-lg text-center">
                    <i class="fab fa-firefox text-4xl text-orange-500 mb-3"></i>
                    <h3 class="font-bold">Firefox</h3>
                    <p class="text-gray-600 text-sm">暂不支持</p>
                </div>
                <div class="bg-white p-6 rounded-lg text-center">
                    <i class="fab fa-safari text-4xl text-blue-400 mb-3"></i>
                    <h3 class="font-bold">Safari</h3>
                    <p class="text-gray-600 text-sm">暂不支持</p>
                </div>
            </div>
        </div>
    </div>

    <!-- FAQ -->
    <div class="py-16 px-4 sm:px-6 lg:px-8 bg-white">
        <div class="max-w-7xl mx-auto">
            <h2 class="text-3xl font-bold text-center mb-12 font-serif">常见问题</h2>
            
            <div class="max-w-3xl mx-auto space-y-6">
                <div class="border-b border-gray-200 pb-6">
                    <h3 class="text-xl font-bold mb-2">插件无法安装或无法使用？</h3>
                    <p class="text-gray-600">请确认浏览器为Chrome或兼容的Chromium浏览器，并已开启开发者模式。检查是否完整下载了源码，推荐使用dist目录下的文件。</p>
                </div>
                
                <div class="border-b border-gray-200 pb-6">
                    <h3 class="text-xl font-bold mb-2">点击插件无反应？</h3>
                    <p class="text-gray-600">请刷新网页后重试，或在扩展管理页面移除后重新加载。检查是否有其他插件冲突或浏览器安全策略限制。</p>
                </div>
                
                <div class="border-b border-gray-200 pb-6">
                    <h3 class="text-xl font-bold mb-2">内容显示不完整或异常？</h3>
                    <p class="text-gray-600">某些特殊页面结构可能导致内容提取不完整，建议反馈具体页面链接至项目仓库issue。</p>
                </div>
                
                <div>
                    <h3 class="text-xl font-bold mb-2">如何卸载插件？</h3>
                    <p class="text-gray-600">在chrome://extensions/页面找到本插件，点击"移除"即可。</p>
                </div>
            </div>
        </div>
    </div>

    <!-- Privacy Section -->
    <div class="py-16 px-4 sm:px-6 lg:px-8 bg-gray-900 text-white">
        <div class="max-w-7xl mx-auto">
            <h2 class="text-3xl font-bold text-center mb-8 font-serif">隐私声明</h2>
            <p class="text-center max-w-3xl mx-auto text-gray-300">本插件仅处理当前页面内容，不会收集或上传任何用户数据。所有缓存数据仅存储在本地浏览器中，确保您的隐私安全。</p>
        </div>
    </div>

    <script>
        mermaid.initialize({
            startOnLoad: true,
            theme: 'default',
            flowchart: {
                useMaxWidth: true,
                htmlLabels: true,
                curve: 'basis'
            }
        });
    </script>
</body>
</html>